I wrote this code under visual studio 2010, using the vs-tool.
I use the emsdk 1.12.0 32 bits under Windows 7.

I put the indispensable in that 7zip file. I should be enough to reproduce the error, unless it is due to my configuration.


Environement options:
EMCC_FORCE_LIBS=1


side.cpp:
emcc -o side.js -O1 -g4  -Werror -v --js-opts 0 -s ASSERTIONS=1 -s WARN_ON_UNDEFINED_SYMBOLS=1 -s SIDE_MODULE=1 -s DLOPEN_SUPPORT=1 -s ASM_JS=1 -s EXPORTED_FUNCTIONS="['_main','_malloc','_ create','_destroy']"
 

main.cpp:
emcc -o main.html -O1 --preload-file "..\side\side.js@/"  -g4  -Werror  -v --js-opts 0 -s ASSERTIONS=1 -s WARN_ON_UNDEFINED_SYMBOLS=1 -s MAIN_MODULE=1 -s DLOPEN_SUPPORT=1 -s ASM_JS=1

